import request from '/@/utils/request'

const apiText = 'purchase_quote'

// 查
export function getSupplierPurchaseListApi(params: any) {
  return request({
    url: `/api/${apiText}/own_list`,
    method: 'get',
    params,
  })
}

// 采购需求详情
export function getPurchaseDemandDetailsApi(purchaseId: any) {
  return request({
    url: `/api/purchase/info/${purchaseId}`,
    method: 'get',
  })
}

// 供应商报价
export function purchaseSupplierOfferApi(data: any) {
  return request({
    url: `/api/${apiText}/submit`,
    method: 'post',
    data,
  })
}
